package com.wuwei.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: BusController <br>
 * @date: 2021/2/16 22:10 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@RestController
@RefreshScope
public class BusController {
    @Value("${server.port}")
    private Integer port;
    
    @Value("${name}")
    private String configInfo;

    @GetMapping("/configInfo")
    public String getConfigInfo(){
        return configInfo + "端口：" + port;
    }
}
